#include <stdio.h>
#include <stdlib.h>

int func_free_ptr(void *p);

int func_free_ptr(void *p)
{
	printf("In func:0x%p\n",p);
	free(p);
	p = NULL;
	printf("In func:0x%p\n",p);
	return 0;
}

int main()
{
	int *ptr;
	ptr = (int *)malloc(10);
	printf("0x%p\n",ptr);
	func_free_ptr(ptr);
	printf("0x%p\n",ptr);
	free(ptr);

	return 0;
}
